<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  {{ message }}
</div>
<script src="../js/vue.js"></script>
<script>
    const app = new Vue({
      el: '#app',
      data: {
        message: "你好",
      }
    })
    console.log(app.$data)
    // 对象增强写法
    const name = 'dsds'
    const age = '26'
    const obj = {
     name, age
    }
    console.log(obj)
    // 函数增强写法
    // ES5
    const obj1 = {
      run: function () {

      },
      eat: function () {

      }
    }

    // ES6
    const obj2 = {
      run () {
      },
      eat () {
      }
    }
</script>
</body>
</html>
